﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CSTest.Models;
using CSTest.Readonly;
using CSTest.IndexAndRange;

namespace CSTest
{
    class Program
    {
        static void Main(string[] args)
        {
            IndexAndRangeTest.Test();

        }

        //async static Task Main(string[] args)
        //{
        //    var a = new TestModel();

        //    await foreach (var i in GetAsyncEnumerable(30))
        //    {
        //        Console.WriteLine($"{DateTime.Now} === value is {i}");

        //    }

        //    Console.WriteLine("Hello world");

        //}

        //static async IAsyncEnumerable<int> GetAsyncEnumerable(int size)
        //{

        //    for (var i = 0; i < size; i++)
        //    {
        //        await Task.Delay(100 * i);
        //        yield return i;
        //    }
        //}
    }
}
